<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>解决IE8表格中的max-width值无效的问题-ie8模式无问题</title>
        <style>
        /*table td,table th{
            border:1px solid #ccc;
        }*/
        table{
            table-layout: fixed;
        }
        table img{
            max-width: 100%;
        }
        </style>
    </head>
    <body>
        <table cellspacing="0" cellpadding="2" align="center" bgcolor="#ff0" border="1">
            <colgroup span="2" style="width:80px"></colgroup>
            <colgroup style="width:300px"></colgroup>
            <thead>
                <tr>
                    <th>姓名</th>
                    <th>年龄</th>
                    <th>图片</th>
                </tr>
            </thead>
            <tdody>
                <tr>
                    <td>邓绍勇</td>
                    <td>26</td>
                    <td><img src="img/tourism1.png" alt="郁金香" /></td>
                </tr>
                <tr>
                    <td>云浩楠</td>
                    <td>27</td>
                    <td><img src="img/tourism1.png" alt="郁金香" /></td>
                </tr>
            </tdody>
        </table>
    </body>
</html>